package anbook.dao;

import java.util.List;

import anbook.dto.Board_like;

public interface IBoardLikeDAO {
	List<Board_like> getBoardLikes(int idx);
	void insertLike(Board_like like);
	void deleteLike(int idx);
	int countLike(Board_like like);
	void allDeleteLike(int idx);
	
	public static final String SQL_INSERT_BOARDLIKE = "insert into board_like value(?, ?, ?)";
	public static final String SQL_DELETE_BOARDLIKE = "delete from board_like where b_num=? and mb_email";
	public static final String SQL_GET_BOARDLIKES = "select * from board_like where b_num=? and bl_type=?";
	public static final String SQL_GETCOUNT_BOARDLIKE = "select count(*) from board_like where b_num=? and bl_type=?";
	public static final String SQL_ALLDELETE_BOARDLIKE = "delete from board_like where b_num=?";
}
